import Opt from '@/components/dt/info/Opt.js'
class ConfigOpt extends Opt {
  constructor(info) {
    super(info)
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
      {
        title: '奖金单延期发起',
        key: 'bonusInitiateExtension',
        switch: {
          openText: '打开',
          closeText: '关闭',
          size: 'large'
        }
      },
      {
        title: '奖金单延期审批',
        key: 'bonusApproveExtension',
        switch: {
          openText: '打开',
          closeText: '关闭',
          size: 'large'
        }
      },
      {
        title: '奖金单月份是否锁定',
        key: 'isLockTime',
        switch: {
          openText: '是',
          closeText: '否',
          size: 'large'
        }
      }
    ]
  }
}

export default ConfigOpt
